FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gc1d68e7.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gc1d68e7.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=c1d68e7 OS_GIT_VERSION=4.10.0-202202160023.p0.gc1d68e7.assembly.stream-c1d68e7 SOURCE_DATE_EPOCH=1643794242 SOURCE_GIT_COMMIT=c1d68e7b97a8bcf9b350e4a686fd202ffc69978f SOURCE_GIT_TAG=c1d68e7 SOURCE_GIT_URL=https://github.com/openshift/machine-api-provider-powervs 
WORKDIR /go/src/github.com/openshift/machine-api-provider-powervs
COPY . .
# VERSION env gets set in the openshift/release image and refers to the golang version, which interfers with our own
RUN unset VERSION \
 && GOPROXY=off NO_DOCKER=1 make build

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.gc1d68e7.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.gc1d68e7.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=c1d68e7 OS_GIT_VERSION=4.10.0-202202160023.p0.gc1d68e7.assembly.stream-c1d68e7 SOURCE_DATE_EPOCH=1643794242 SOURCE_GIT_COMMIT=c1d68e7b97a8bcf9b350e4a686fd202ffc69978f SOURCE_GIT_TAG=c1d68e7 SOURCE_GIT_URL=https://github.com/openshift/machine-api-provider-powervs 
COPY --from=builder /go/src/github.com/openshift/machine-api-provider-powervs/bin/machine-controller-manager /

LABEL \
        name="openshift/ose-powervs-machine-controllers" \
        com.redhat.component="ose-powervs-machine-controllers-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Cloud Compute" \
        io.openshift.maintainer.subcomponent="Other Providers" \
        release="202202160023.p0.gc1d68e7.assembly.stream" \
        io.openshift.build.commit.id="c1d68e7b97a8bcf9b350e4a686fd202ffc69978f" \
        io.openshift.build.source-location="https://github.com/openshift/machine-api-provider-powervs" \
        io.openshift.build.commit.url="https://github.com/openshift/machine-api-provider-powervs/commit/c1d68e7b97a8bcf9b350e4a686fd202ffc69978f" \
        version="v4.10.0"

